import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () =>
      import(/* webpackChunkName: "main3" */ './views/main/index.vue'),
    redirect: '/hddl',
    children: [
      {
        path: '/hddl',
        name: 'home',
        component: () =>
          import(/* webpackChunkName: "home2" */ './views/hddl/index.vue'),
      },
      {
        path: '/bgyd',
        name: 'about',
        component: () =>
          import(/* webpackChunkName: "about3" */ './views/bgyd/index.vue'),
      },
    ],
  },
]

export default routes
